/*
 * $Id: LogLevelChecker.java 37 2012-12-28 09:15:03Z vladimirow@mail.ru $
 * $HeadURL: http://ultralog.googlecode.com/svn/ultralog/tags/release-20130123/src/java/com/google/code/ultralog/LogLevelChecker.java $
 *
 * This file is a part of ultralog project (http://code.google.com/p/ultralog/).
 * Released under New BSD License.
 */
package com.google.code.ultralog;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Marks logger interface methods that are used to check whether certain logging
 * level is enabled for the logger.  Method marked with this annotation
 * shouldn't have parameters and should have boolean return type.
 *
 * @author Mikhail Vladimirov
 */
@Target (ElementType.METHOD)
@Retention (RetentionPolicy.RUNTIME)
public @interface LogLevelChecker
{
    /**
     * Logging level to be checked.
     */
    public int level ();
}
